//
//  YDYUser.m
//  DY_Weibo3
//
//  Created by 杨德勇 on 2016/8/22.
//  Copyright © 2016年 杨德勇. All rights reserved.
//

#import "YDYUser.h"

@implementation YDYUser
-(YDYUser *)initWithDict:(NSDictionary *)dict{
    [self setValuesForKeysWithDictionary:dict];
    return self;
}
+(YDYUser *)ydyUserWithDict:(NSDictionary *)dict{
    return [[self alloc]initWithDict:dict];
}


-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
-(void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        self.idStr = value;
        return;
    }
    [super setValue:value forKey:key];
}
@end
